﻿<%@ Control Language="C#" ClassName="OrdersOrderFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataMembersId" runat="server" Text="Members Id:" AssociatedControlID="dataMembersId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataMembersId" DataSourceID="MembersIdMembersDataSource" DataTextField="MembersName" DataValueField="MembersId" SelectedValue='<%# Bind("MembersId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:MembersDataSource ID="MembersIdMembersDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataOrderDate" runat="server" Text="Order Date:" AssociatedControlID="dataOrderDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataOrderDate" Text='<%# Bind("OrderDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataOrderDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataOrderDate" runat="server" Display="Dynamic" ControlToValidate="dataOrderDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataOrderQuantity" runat="server" Text="Order Quantity:" AssociatedControlID="dataOrderQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataOrderQuantity" Text='<%# Bind("OrderQuantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataOrderQuantity" runat="server" Display="Dynamic" ControlToValidate="dataOrderQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataOrderQuantity" runat="server" Display="Dynamic" ControlToValidate="dataOrderQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataOrderTotal" runat="server" Text="Order Total:" AssociatedControlID="dataOrderTotal" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataOrderTotal" Text='<%# Bind("OrderTotal") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataOrderTotal" runat="server" Display="Dynamic" ControlToValidate="dataOrderTotal" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataOrderTotal" runat="server" Display="Dynamic" ControlToValidate="dataOrderTotal" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataShippingName" runat="server" Text="Shipping Name:" AssociatedControlID="dataShippingName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataShippingName" Text='<%# Bind("ShippingName") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataShippingAddress" runat="server" Text="Shipping Address:" AssociatedControlID="dataShippingAddress" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataShippingAddress" Text='<%# Bind("ShippingAddress") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataShippingTel" runat="server" Text="Shipping Tel:" AssociatedControlID="dataShippingTel" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataShippingTel" Text='<%# Bind("ShippingTel") %>' MaxLength="11"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataShippingCity" runat="server" Text="Shipping City:" AssociatedControlID="dataShippingCity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataShippingCity" Text='<%# Bind("ShippingCity") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataShippingNotice" runat="server" Text="Shipping Notice:" AssociatedControlID="dataShippingNotice" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataShippingNotice" Text='<%# Bind("ShippingNotice") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsActive" runat="server" Text="Is Active:" AssociatedControlID="dataIsActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


